package org.clevernote.main;

import org.clevernote.foundations.Authentication;
import org.clevernote.foundations.ClevernoteConstants;
import org.clevernote.foundations.StringConstants;
import org.clevernote.foundations.cmd.Cmd;

import ui.cmdline.parser.CommandLineArguments;
import ui.cmdline.parser.ParserException;

public class CmdLogin implements Cmd {


	public void run(CommandLineArguments cmdline, Authentication auth) {
		if (auth != null)
			auth.store();
	}
	
	public static void main(String args[]) {
		try {
			Cmd cmd = new CmdLogin();
			
			CmdRunner.executeCmd(args, cmd) ;			
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}


	public String getName() {
		return StringConstants.CMD_LOGIN;
	}

}
